<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Realm - Club</title>
    <include file ="Public/header"/>

    <div class="container-fluid">

      <!-- Side menu -->  
      <include file="Public/menu"/>
      <!-- /Side menu -->

      <!-- Main window -->
      <div class="main_container" id="users_page">


  <div class="price">
    <div class="price-grid">

      <div class="col-sm-4 price-top">
        <h4>搜索</h4>
                  <form  method="post"  class="form-horizontal" action="{:U('search')}"  enctype="multipart/form-data" >
                   <li style="list-style:none; float:left">
                   <input style="width:200px; height:35px; border:1px solid #27da93; 
                   font-size:0.9em; color:#a9a7a7; outline: none;border-radius:5px;" name="clubname" type="text" placeholder="请输入俱乐部名">
                   <li style="list-style:none; float:left"><input class="btn btn-info" style="background-color:#27da93" type="submit" value ="搜索" >
                  </form> 
      </div>


    </div>
    <div class="price-grid">


      <div class="clearfix"> </div>
    </div>
  </div>

        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>俱乐部信息</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                  <tr>
                    <th>序号</th>
                    <th>俱乐部名称</th>
                    <th>俱乐部地点</th>
                    <th>俱乐部简介</th>
                    <th>俱乐部图片</th>
                    <th>联系电话</th>
                    <th>营业时间</th>
                    <th>状态</th>
                    <th>操作</th>
                  </tr>
                </thead>

                <tbody>
                   <volist name="user" id="vo">
                   <tr>
                      <td>{$vo.clubid}</td>
                      <td>{$vo.clubname}</td>
                      <td>{$vo.clubplace}</td>
                      <td>{$vo.clubnote}</td>
                      <td align="center"><img src="__PUBLIC__/Uploads/clubphoto/{$vo.clubphoto}" width=85 alt="无头像"></td>
                      <td>{$vo.clubphone}</td>
                      <td>{$vo.clubtime}</td>
                      <td><if condition="($vo.state eq 0)"><span class="label label-important">未审核</span><else/><span class="label label-success">已审核</span></if></td>
                      
                      <td>
                         <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        Action
                          <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                          <!-- <li> 
                          <if condition="($vo.state eq 0)"><a href="changestate/id/{$vo.id}/state/{$vo.state}"><i class="icon-envelope"></i>暂停使用</a><else/><a href="changestate/id/{$vo.id}/state/{$vo.state}"><i class="icon-envelope"></i>取消禁用</a></if> -->
                          <li><a href="editclub/id/{$vo.clubid}"><i class="icon-trash"></i>修改</a></li>
                          <li><a href="delclub/id/{$vo.clubid}"><i class="icon-trash"></i>删除</a></li>
                        </ul>

                        <!-- <ul class="dropdown-menu pull-right">
                          <li><a href="#"><i class="icon-heart"></i>  <if condition="($vo.state eq 0)">
                                <a href="changestate/id/{$vo.id}/state/{$vo.state}"><i class="icon-bell-alt"></i>暂停使用</a>
                                <else/>
                                <a href="changestate/id/{$vo.id}/state/{$vo.state}"><i class="icon-bell"></i>取消禁用</a>
                                </if></a></li>
                          <li><a href="editpswd/id/{$vo.id}"><i class="icon-key"></i> 密码重置</a></li>
                          <li><a href="deluser/id/{$vo.id}"><i class="icon-trash"></i> 删除</a></li>
                        </ul> -->


                      </div>
                      </td>

                      <!-- substr取子串 -->
                      <!-- <td><if condition="($vo.state eq 0)"><a href="changestate/id/{$vo.id}/state/{$vo.state}">暂停使用</a><else/><a href="changestate/id/{$vo.id}/state/{$vo.state}">取消禁用</a></if>| -->
                      <!-- <a href="editpswd/id/{$vo.id}">密码重置</a>|<a href="deluser/id/{$vo.id}">删除</a> -->
                      <!-- <if condition="($vo.state eq 0)"><a href="changestate/id/{$vo.id}/state/1">暂停使用</a><else/><a href="changestate/id/{$vo.id}/state/0">取消禁用</a></if> -->
                      <!-- <a href="/diuba/index.php?m=admin&c=user&a=changestate&id=2&state=1">禁用</a> -->
                   </tr>
                   </volist>
                </tbody>
                
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->

    <!-- Example Modal -->
    <include file ="Public/footer"/>

  </body>
</html>
